package com.boomsecret.pattern.strategy;

/**
 * Created by wangjinliang on 2018/1/24.
 */
public class StrategyPatternDemo {
    public static void main(String[] args) {
        Troll troll = new Troll();
        troll.getCharacterName();
        troll.fight();

        troll.setWeaponBehavior(new GunBehavior());
        troll.fight();
    }
}
